package ch.fhnw.kosmonauten.client.gui;

/**
 * Diese Klasse definiert das Format der Fehlermeldungen.
 * 
 * @author Fabian Siegrist
 * @author Oliver Freiermuth
 * @author Mikhail Onoufrienko
 * @author Risto Milani
 * @version $Revision: 57 $
 *          File name: $HeadURL: http://iching-kosmonauten.googlecode.com/svn/I-Ching/src/ch/fhnw/kosmonauten/client/gui/Error.java $
 *          Last modified:$Date: 2013-05-24 11:09:41 +0000 (Fri, 24 May 2013) $
 *          Last modified by: $Author: molotok.mihon@gmail.com $
 */

// class definitions
public class Error {

	// attributes
	private final int key;
	private final String title;
	private final String message;

	// constructors
	/**
	 * @param key
	 * @param title
	 * @param message
	 */
	public Error(int key, String title, String message) {
		this.key = key;
		this.title = title;
		this.message = message;
	}

	// methods
	/**
	 * @return error key
	 */
	public int getKey() {
		return this.key;
	}

	/**
	 * @return error title
	 */
	public String getTitle() {
		return this.title;
	}

	/**
	 * @return error message
	 */
	public String getMessage() {
		return this.message;
	}
}